/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control;

import DAO.*;
import entidad.Artist;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Juan
 */
public class ControlArtist {
    private ArtistDAO artistDAO=new ArtistDAO();

    public boolean createArtist(Artist artist){
        return artistDAO.crear(artist);
    }
    
    public List<Artist> buscarPorNombre(String nombre){
        return (List<Artist>)artistDAO.buscar(nombre);
    }
    
    public void editArtist(String name, String lastName, String lugarNac, Date fechaNac, int id){
        artistDAO.editArtist(name, lastName, lugarNac, fechaNac, id);
    }
}
